/**
 * 	write on 2005-11-15 13:12:30.
 */
package org.nanhill.xmlro.sro.model;

import static org.nanhill.xmlro.sro.SroConstants.BASE64;
import static org.nanhill.xmlro.sro.SroConstants.BOOLEAN;
import static org.nanhill.xmlro.sro.SroConstants.DATE;
import static org.nanhill.xmlro.sro.SroConstants.DOUBLE;
import static org.nanhill.xmlro.sro.SroConstants.INT;
import static org.nanhill.xmlro.sro.SroConstants.LIST;
import static org.nanhill.xmlro.sro.SroConstants.LONG;
import static org.nanhill.xmlro.sro.SroConstants.MAP;
import static org.nanhill.xmlro.sro.SroConstants.NULL;
import static org.nanhill.xmlro.sro.SroConstants.STRING;

import org.nanhill.xmlro.AbstractDeserializerFactory;

/**
 * @author alin
 * 
 */
public class SroDeserializerFactory extends AbstractDeserializerFactory {

	public SroDeserializerFactory() {
		init();
	}

	private void init() {
		dispatcher.put(NULL, new SroNullDeserializer());
		dispatcher.put(DATE, new SroDateDeserializer());
		dispatcher.put(BASE64, new SroBase64Deserializer());
		dispatcher.put(DOUBLE, new SroDoubleDeserializer());
		dispatcher.put(BOOLEAN, new SroBooleanDeserializer());
		dispatcher.put(LONG, new SroLongDeserializer());
		dispatcher.put(INT, new SroIntegerDeserializer());
		dispatcher.put(MAP, new SroMapDeserializer());
		dispatcher.put(STRING, new SroStringDeserializer());
		dispatcher.put(LIST, new SroCollectionDeserializer());
	}

}
